<?php
defined('JPATH_BASE') or die();

class JElementPaypal extends JElement {

	var	$_name = 'Paypal';
	function fetchElement( $name, $value, &$node, $control_name )
	{ 
		$class = $node->attributes( 'class' ) ? $node->attributes( 'class' ) : "text_area";
	 
		$return = '<a target="_blank" href="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=paypal@augs-burg.de&item_name=Go_Roundy&item_number='.$_SERVER['SERVER_NAME'].'&amount=&currency_code=EUR"><img src="https://www.paypal.com/en_US/i/btn/btn_donateCC_LG.gif" alt="Donate" /></a>'; 
		return $return;
	}
}
?>